home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 5_programming / pretend < prev    next >
Encoding:
Text File  |  2002-10-28  |  762 b   |  24 lines

  1. Synopsis:
  2.    pretend <arguments>
  3.  
  4. Description:
  5.    The PRETEND command allows the client to "pretend" it received the given
  6.    arguments from the server.  It is intended only to be used inside a hook
  7.    action.  One possible use for this might be a highly customized scripted
  8.    DCC system.  It is mostly only of use with RAW_IRC.
  9.  
  10. Examples:
  11.    To convert all CTCP ACTIONs to normal messages:
  12.       on raw_irc "% PRIVMSG % :AACTION *A" {
  13.          pretend $0-2 :(ACTION) $strip(A $4-)
  14.       }
  15.  
  16. See Also:
  17.    fake-dcc(8); hook(5); on(5) raw_irc, send_to_server
  18.  
  19. Other Notes:
  20.    As previously mentioned, this command is only designed to be used as
  21.    part of a hook action.  Its behavior when not used in this manner is
  22.    undefined.
  23.  
  24.